package cn.cboard.dao;

import java.util.List;

import junit.framework.TestCase;
import cn.cboard.Constants;

public class TestDao extends TestCase{
	
	public TestDao(String name) {
		super(name);
	}

	
	public void testSequence(){
		SequenceDao dao = DaoFacade.getSequenceDao();
		Long id = null;
		try {
			id = dao.getNextId(Constants.USER);
		} catch (Exception e) {
			e.printStackTrace();
		}
		//assertEquals("Id error",1001,id);
		super.assertEquals("Next id error", id, new Long(101));
	}

}
